# name = "张三"
# age = 18
# address = "北京"
# phone_number = "13235445321"
#
# print("我的名字是%s,我的年龄是%s,我来自的地方是%s,我的电话号码是%s"%(name,age,address,phone_number))
# print(f"我的名字是{name},我的年龄是{age},我来自的地方是{address},我的电话号码是{phone_number}")



information = "大家好，我叫郝健成，来自吉林省吉林市，今年65岁"

# print(information[12:15])
# print(information[21:])
# print(information.replace("吉林省吉林市","辽宁省沈阳市"))
# for i in information:
#     print(i)
#
# put = int(input("请输入一个数字"))               #输入一个数字，判断它是偶数还是奇数
# if put%2==0:
#     print("偶数")
# else :
#     print("奇数")



#
# ins = int(input("请输入一个数字"))         #5、输入一个数字，计算从0开始到这位数字的和是多少？
#
# sum = 0
# for i  in  range(ins+1):
#     sum = sum + i
# print(f"总和是：{sum}")




# weather = input("请输入一个天气：")                    #6、
#
# if    weather == "晴天":
#     print("今天出去玩")
# elif   weather == "雨天":
#     print("今天睡懒觉")
# elif   weather == "阴天":
#     print("出门多穿衣服")
# elif    weather == "雪天":
#     print("出门穿棉袄")
# elif     weather == "雷雨天气":
#     print("出门记得带上郝健成一起走")
# else:
#     print("输入的非天气")



# sum = 0
# for i in range(1,201):               #7、从1-200，能被3整除的和是多少
#     if i%3==0:
#         sum=sum+i
# print(sum)


#
# sum = 0
# for i in range(2,2001):               #8、从2-2000，能被20整除的和是多少
#     if i%20==0:
#         sum=sum+i
# print(sum)

#
# sum = 0
# for i in range(300,40001):         #9、计算从300-4000，可以被2整除但是不能被3整除的和是多少？
#     if i%2==0 and i%3!=0:
#         sum=sum+i
# print(sum)

#
# str1 = "aaasadasdasda"          #10、将：aaasadasdasda，这个字符串里面的a替换为：郝健成
# print(str1.replace("a","郝健成"))
#
# str_001=str1.replace("a","郝健成")                       #不能用print再定义，将替换好的字符串，把所有字符串里面的s替换为：琳姐
# print(str_001.replace("s","琳姐"))



#
# name = input("输入姓名：")            #通过输入函数，输入姓名、年龄、性别、地址、手机号码，结合字符串占位符进行输出
# age = input("输入年龄：")
# sex = input("输入性别：")
# address = input("输入地址：")
# phone = input("输入手机号码：")
# print(f"您的姓名是{name},年龄是{age},性别是{sex},地址是{address},手机号码是{phone}")



